﻿using Domain.Entities.Customers;
using FrameworkCore.Attributes;

namespace NM.Module.Auth.API.DTOs;

#nullable disable

/// <summary>
/// 登录输出模型
/// </summary>
[Map(typeof(Customer))]
public class LoginOutputModel
{
    /// <summary>
    /// 用户名
    /// </summary>
    public string Username { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    public string Email { get; set; }

    /// <summary>
    /// 头像
    /// </summary>
    public string Avatar { get; set; }

    /// <summary>
    /// 访问令牌
    /// </summary>
    public string AccessToken { get; set; }

    /// <summary>
    /// 刷新令牌
    /// </summary>
    public string RefreshToken { get; set; }

    /// <summary>
    /// 访问令牌过期时间
    /// </summary>
    public string Expires { get; set; }
}
